package com.codegen;

public class Main {
    public static void main(String[] args) throws Exception {
        String dbName = "test";
        String url = "jdbc:mysql://192.168.0.XXX:3306/" + dbName + "?useInformationSchema=true";
        String userName = "root";
        String password = "ROOT";
        CodeGenerator generator = new CodeGenerator("src/main/resources/templates");
        generator.generate(dbName, "com.code.gen", url, userName, password);
        System.out.println("代码生成完成！");
    }
}